<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<p>
    Today's date: <%= (new java.util.Date()).toLocaleString()%>
    <% pageContext.setAttribute("myAttr", "myValue"); %>
</p>